package com.sharer.last.wrapper;

import com.sharer.last.base.support.BaseEntityWrapper;
import com.sharer.last.model.po.PersonalDetailPO;
import com.sharer.last.model.vo.personDetail.PersonalDetailVO;
import com.sharer.last.utils.BeanUtil;
import org.springframework.stereotype.Component;

/**
 * 关于我
 *
 * @ClassName PersonalDetailWrapper
 * @Author WangJin
 * @Date 2023/05/09/9:33
 * @Description
 * @Version 1.0
 */
@Component
public class PersonalDetailWrapper extends BaseEntityWrapper<PersonalDetailPO, PersonalDetailVO> {

    /**
     * 单个实体类包装
     *
     * @param entity
     * @return
     */
    @Override
    public PersonalDetailVO entityVO(PersonalDetailPO entity) {
        PersonalDetailVO vo = BeanUtil.copy(entity, PersonalDetailVO.class);
        return vo;
    }
}
